package com.leyou.search.service;


import com.leyou.common.dto.SpuDTO;
import com.leyou.search.pojo.Goods;
import org.springframework.stereotype.Service;


public interface IndexService {
    void loadData();

    //把spuDTO转换为Goods
    Goods buildGoods(SpuDTO spuDTO);

    //保存商品
    void saveGoodsById(Long spuId);
   //删除商品
    void deleteGoodsById(Long spuId);
}
